﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_MailExtGetSet]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_MailExtGetSet];
GO
CREATE PROCEDURE [dbo].[sproc_MailExtGetSet]
    (
     @Username            [nvarchar](50),
     @OrderId        [int]
    
)
AS 
  
SELECT *  FROM  TabExtMailSetting WHERE Username=@Username and OrderID=@OrderID